package com.Ajava1801D.设计模式.原型模式;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2020/10/12  15:03
 * 描述:
 */
public class TestYuanxing000 {

    public static void main(String[] args) throws CloneNotSupportedException, IOException, ClassNotFoundException {

        YuanXinglei yuanXinglei=new YuanXinglei();

        List<Map<String,List<String>>> list=new ArrayList<>();

        yuanXinglei.setIntt(6);

        yuanXinglei.setList(list);
/*
        YuanXinglei clone = yuanXinglei.clone();*/


   /*     System.out.println(clone.getList()==yuanXinglei.getList());

        System.out.println(clone.getIntt()==yuanXinglei.getIntt());*/

        YuanXinglei yuanXinglei1 = yuanXinglei.deepClone();

        System.out.println(yuanXinglei1.getList()==yuanXinglei.getList());

        System.out.println(yuanXinglei1.getIntt()==yuanXinglei.getIntt());

    }

}
